import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    routes: [],
    windows: {
      height: 0,
      width: 594
    }
  },
  mutations: {
    inRoute (state, params) {
      state.routes = params.arrays;
    },
    windowResize(state, params){
      state.windows.height = params.height < 666 ? 666 : params.height;
      state.windows.width = params.width < 888 ? 888 : params.width;
    }
  },
  actions: {
  },
  modules: {
  }
})
